package sf.j2tree.tree;

/**
 * Created by ping on 2017-09-12.
 */

public class BinaryNode<T extends Comparable> {
    T data;
    BinaryNode<T> left;
    BinaryNode<T> right;

    public BinaryNode(T data) {
        this(data, null, null);
    }

    public BinaryNode(T data, BinaryNode<T> right, BinaryNode<T> left) {
        this.data = data;
        this.right = right;
        this.left = left;
    }

}
